/* 湖人队主题色彩 */
:root {
    --lakers-purple: #552583;
    --lakers-gold: #FDB927;
    --lakers-purple-light: rgba(85, 37, 131, 0.7);
    --lakers-gold-light: rgba(253, 185, 39, 0.3);
    --white: #ffffff;
    --error-color: #f44336;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--lakers-purple-light), var(--lakers-gold-light), var(--lakers-purple-light));
    background-attachment: fixed;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 16px;
}

.screen {
    display: none;
    width: 100%;
}

.screen.active {
    display: block;
}

.card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 32px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.title {
    color: var(--lakers-purple);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--lakers-gold);
    font-size: 1.2rem;
    margin-bottom: 32px;
}

.input-group {
    margin-bottom: 16px;
}

input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--lakers-purple);
}

input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.btn {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
}

.btn.primary {
    background-color: var(--lakers-purple);
    color: var(--white);
}

.btn.primary:hover:not(:disabled) {
    background-color: #4a1f75;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.link-btn {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 14px;
    margin-top: 16px;
    padding: 8px;
    text-decoration: underline;
}

.link-btn:hover {
    opacity: 0.8;
}

.error-message {
    color: var(--error-color);
    font-size: 14px;
    margin-bottom: 8px;
    text-align: left;
}

.loading {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.welcome-content {
    text-align: center;
}

.welcome-text {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 16px;
    color: var(--lakers-purple);
}

.description {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: #666;
}

.token-info {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 32px;
    word-break: break-all;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .card {
        padding: 24px;
        margin: 16px;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}

/* 动画效果 */
.card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 成功提示 */
.success-message {
    color: #4caf50;
    font-size: 14px;
    margin-bottom: 8px;
    text-align: center;
}